@import './style.less';

@itemSelect-prefix:          ~"@{prefix}-itemSelect";

.@{itemSelect-prefix} {
  min-height: 40px;
  background-color: #f9f9f9;
  padding: 5px 10px;
  border-radius: @border-radius-base;
}

.@{itemSelect-prefix}-item {
  padding: 5px 10px;
  border: 1px solid #999;
  background-color: #fff;
  color: #999;
  height: 26px;
  line-height: 16px;
  margin-right: 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  display: inline-block;
  position: relative;

  &:hover {
    border-color: @primary-hover;
    color: @primary-hover;
  }
}

.@{itemSelect-prefix}-item-selected {
  border-color: @primary-color;
  color: @primary-color;
  position: relative;

  .@{itemSelect-prefix}-item-checked {
    width: 0;
    height: 0;
    border-width: 7px 9px;
    border-style: solid;
    border-color: transparent @primary-color @primary-color transparent;
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: pointer;

    &:before {
      content: "\E632";
      color: #fff;
      margin-left: -2px;
      margin-top: -3px;
    }
  }

  &:hover {
    border-color: @primary-hover;
    color: @primary-hover;

    .@{itemSelect-prefix}-item-checked {
      border-color: transparent @primary-hover @primary-hover transparent;
    }
  }
}
